from typing import Optional
from fastapi import Query
from main import app
from select import *

@app.get("/api/zt/")
async def zt():
    pass

@app.get("/api/jd/")
async def jd():
    pass

@app.get("/api/ems/")
async def ems():
    capcode = ems.get_slide()
    print(capcode)
    ems.change_size('E:/nodeProject/FastapiProject/yzmcode/emscode2.png', 350, 200, 'E:/nodeProject/FastapiProject/yzmcode/emscode4.png')
    ems.change_size('E:/nodeProject/FastapiProject/yzmcode/emscode1.png', 350, 200, 'E:/nodeProject/FastapiProject/yzmcode/emscode3.png')
    x = input('请输入距离:')
    ems.check(capcode,x)
    ems.get_search(capcode,x)
